package com.bwie.service;

import com.bwie.pojo.TbUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.utils.R;
import com.bwie.vo.LoginAdminVo;
import com.bwie.vo.LoginForm;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【tb_user(用户表)】的数据库操作Service
* @createDate 2025-04-20 18:42:41
*/
public interface TbUserService extends IService<TbUser> {

    R getUserByUserId(Integer userId);

    R login(LoginAdminVo loginAdminVo);

    R loginMobile(LoginForm loginForm);

    R sendCode(String mobile);

    R addUser(TbUser tbUser);

    R getUserPage(PageInfoVo pageInfoVo);

    R loadImage(MultipartFile file);

    R checkUser(TbUser tbUser);

    R updateUser(TbUser tbUser);

    R deleteByUserId(Integer userId);

    R deleteBatch(List<TbUser> ids);
}
